package com.hospital.common.core.config;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "thread-pool")
@Data
@NoArgsConstructor
public class ThreadPoolConf {
    //    @ApiModelProperty(value = "核心线程数的最大值")
    private Integer corePoolSize;

    //    @ApiModelProperty(value = "线程池中能拥有最多线程数")
    private Integer maximumPoolSize;

    //    @ApiModelProperty(value = "非核心线程空闲存在时间(单位:秒)")
    private Integer keepAliveTime;

    //    @ApiModelProperty(value = "线程池等待队列最大容量")
    private Integer queueCapacity;
}
